//
//  QGUserCenter.h
//  qeegooChat
//
//  Created by heew on 16/1/7.
//  Copyright © 2016年 com.autozi. All rights reserved.
//

#import <Foundation/Foundation.h>
@class QGUserModel,QGMessageExtendUserModel;
typedef void (^ZYUserCenterRequestSuccessBlock)(NSString *message);

typedef void (^ZYUserCenterRequestFaildBlock)(NSError *error);


@interface QGUserCenter : NSObject
+ (QGUserCenter *)shareCenter;

- (void)registUserWithMobile:(NSString *)mobile
                withPassword:(NSString *)password
                 withSuccess:(ZYUserCenterRequestSuccessBlock)success
                   withFaild:(ZYUserCenterRequestFaildBlock)faild;

- (void)LoginUserWithMobile:(NSString *)mobile
               withPassword:(NSString *)password
                withSuccess:(ZYUserCenterRequestSuccessBlock)success
                  withFaild:(ZYUserCenterRequestFaildBlock)faild;

- (QGMessageExtendUserModel *)extendUserInfo;

- (BOOL)isLogin;

- (QGUserModel *)currentLoginUser;

- (NSString *)getLastUserPassword;

- (void)createUserTable;

- (void)updateNickname:(NSString *)nickname;

- (void)updateAvatar:(NSString *)imageUrl;

- (void)autoLogin;

- (void)createUser;

- (void)updateUsers;

- (void)deleteUser;

- (void)queryUser;

@end
